package com.ddwl.schema.bo.user;

import com.ddwl.schema.bo.base.BaseBo;
import com.ddwl.schema.model.Location;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author Fu Zhaohui
 * @version 1.0.0
 * @date 2021/6/1 10:17
 */
@ApiModel("设备轨迹Bo")
@Getter
@Setter
public class TrackBo extends BaseBo {

    @NotNull(message = "设备不能为空")
    @Size(min = 1, message = "至少上传一个设备")
    private List<String> macs;

    @Valid
    @NotNull(message = "定位数据为空")
    private Location loc;

    private String wifi;
}
